<template>
  <a-table :columns="columns" :data-source="data">
  
  </a-table>
</template>

<script setup lang="ts">
const columns = [
  {
    title: '菜单名称',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '图标',
    dataIndex: 'age',
    key: 'age',
  },
  {
    title: '排序',
    dataIndex: 'address',
    key: 'address',
  },
  {
    title: '状态',
    key: 'status',
    dataIndex: 'status',
  },
  {
    title: '创建时间',
    key: 'createTime',
    dataIndex: 'createTime',
  },
  {
    title: '操作',
    key: 'action',
  },
];

const data = [
  {
    key: '1',
    name: 'John Brown',
    age: 32,
    address: 'New York No. 1 Lake Park',
    status: 1,
    createTime: '2023-03-04'
  },
  {
    key: '2',
    name: 'Jim Green',
    age: 42,
    address: 'London No. 1 Lake Park',
    status: 1,
    createTime: '2023-03-04'
  },
  {
    key: '3',
    name: 'Joe Black',
    age: 32,
    address: 'Sidney No. 1 Lake Park',
    status: 1,
    createTime: '2023-03-04'
  },
];
</script>

<style lang="scss" scoped></style>